package com.zb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjStoreOutbound;
import com.zb.extend.StoreOutboundExtend;
import com.zb.mapper.ZjStoreOutboundMapper;
import com.zb.service.ZjStoreOutboundService;
import com.zb.vo.StoreOutboundListSelectVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 出库表 服务实现类
 * </p>
 *
 * @author WEN
 * @since 2024-01-08
 */
@Service
public class ZjStoreOutboundServiceImpl extends ServiceImpl<ZjStoreOutboundMapper, ZjStoreOutbound> implements ZjStoreOutboundService {
    @Resource
    private ZjStoreOutboundMapper storeOutboundMapper;

    // 获取出库列表
    @Override
    public List<StoreOutboundExtend> getList(Long custAccId, StoreOutboundListSelectVo selectVo) {
        return storeOutboundMapper.getList(custAccId, selectVo);
    }

    // 获取出库列表总记录数
    @Override
    public long getListCount(Long custAccId, StoreOutboundListSelectVo selectVo) {
        return storeOutboundMapper.getListCount(custAccId, selectVo);
    }

    // 获取仓库列表本月的出库的数量
    @Override
    public long getListCurrentMothInWidthOutStoreQty(Long custAccId) {
        return storeOutboundMapper.getListCurrentMothInWidthOutStoreQty(custAccId);
    }

    // 根据删除出库类型ID获取出库关联的类型ID
    @Override
    public List<Long> getTypeIdByDelTypeIds(List<Long> delTypeIds) {
        return storeOutboundMapper.getTypeIdByDelTypeIds(delTypeIds);
    }
}
